package com.hlkj.baojin.entity;

import com.hlkj.baojin.entity.dto.MonitorDto;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import java.util.List;

/**
 * @author HULIN
 * @created with: baojin
 * @package com.hlkj.baojin.entity
 * @description:
 * @date 2019/1/9 10:46
 * @modified By:
 * @Copyright © 2018 HAILIANG Info. Tech Ltd. All rights reserved.
 */
@Document
@Getter
@Setter
public class CompanyArea {

    @Id
    private String id;

    /**
     * 厂区
     */
    private String name;

    /**
     * 所属企业
     */
    private String belongCompany;

    /**
     * 0.车间 1.仓库 2.储罐 3.其它
     */
    private Integer type;

    /**
     * 录入人id
     */
    private String createMan;

    /**
     * 创建时间
     */
    private Long createTime;

    /**
     * 修改人id
     */
    private String updateMan;

    /**
     * 修改时间
     */
    private Long updateTime;

    /**
     * 软删 0.正常 1.删除 默认0
     */
    private Integer delete;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 监控
     */
    private List<MonitorDto> monitorDtoList;

    public CompanyArea() {
        super();
    }

    public CompanyArea(String createMan, Long createTime, Integer status, Integer delete) {
        this.createMan = createMan;
        this.createTime = createTime;
        this.status = status;
        this.delete = delete;
    }

    public CompanyArea(String id, String updateMan, Long updateTime, Integer delete) {
        this.id = id;
        this.updateMan = updateMan;
        this.updateTime = updateTime;
        this.delete = delete;
    }
}
